//
//  YATaskSearchGames.m
//  YoucApi
//
//  Created by Liam on 12/8/12.
//
//

#import "YATaskSearchGames.h"
#import "YATaskGameListHandler.h"

@implementation YATaskSearchGames

TASK_AUTO_REGISTER(TaskSearchGames);

- (NSString *)_getUriParamA
{
	return @"search_games";
}

- (void)_dealWithJSONResponse:(id)responseObject withError:(NSError *)error
{
	YATaskGameListHandler *handler = [[[YATaskGameListHandler alloc] initWithTask:self] autorelease];
	
	YARespGameList *respGameList = [handler gameListWithResponse:responseObject withError:error];
	
	if ([self.delegate respondsToSelector:@selector(searchGamesResponse:respGameList:)])
	{
		[self.delegate searchGamesResponse:self respGameList:respGameList];
	}
}

@end
